package lambda;

import java.util.Comparator;

public class LambdaDemo01 {
    public static void main(String[] args) {
        Comparator<String> c1 = new Comparator<String>() {
            @Override
            public int compare(String o1, String o2) {
                return o1.length() - o2.length();
            }
        };
        Comparator<String> c2 = ( o1,  o2)->
            o1.length() - o2.length();
    }
}
